package com.sumainfor.pc.gmio.controller.housekeeper;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.service.impl.IntelligentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author ZHOUCONG
 * @ClassName IntelligentController
 * @date 2019/12/14 13:54
 * @description: TODO
 */
@Controller
@RequestMapping("/Intelligent")
public class IntelligentController {

    @Autowired
    IntelligentService intelligentService;

    /**
     * 发送智能门锁密码
     * @param params
     * @return
     */
    @ResponseBody
    @PostMapping("/getIntelligentDoor")
    public JsonResult getIntelligentDoor(@RequestBody Map<String,Object> params){
        return intelligentService.getIntelligentDoor(params);


    }

    public static void main(String[] args) {
        System.currentTimeMillis();
    }

}
